﻿@model COP4710.Models.ReportModel

@{
    ViewBag.Title = "Export";
    ViewBag.PageTitle = "Run Report";
}



<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Generate Report</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.StartDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartDate)
            @Html.ValidationMessageFor(model => model.StartDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EndDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EndDate)
            @Html.ValidationMessageFor(model => model.EndDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Unit)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Unit)
            @Html.ValidationMessageFor(model => model.Unit)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.StartAge)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.StartAge)
            @Html.ValidationMessageFor(model => model.StartAge)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EndAge)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EndAge)
            @Html.ValidationMessageFor(model => model.EndAge)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CC)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CC)
            @Html.ValidationMessageFor(model => model.CC)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Level)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Level)
            @Html.ValidationMessageFor(model => model.Level)
        </div>

        <p>
            <input type="submit" value="Create" class="Submit" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
